import Base from '../../base'

export default class extends Base {
  upload () {
    const file = this.vm.$refs.file.files[0]
    const URL = window.URL || window.webkitURL
    if (file) {
      const blobURL = URL.createObjectURL(file)
      this.vm.baseUrl = blobURL
      this.vm.show = true
    }
  }
}
